﻿using LS.Entitys;
using LS.Entitys.system;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LS.Cores
{
    /// <summary>
    /// 消息自己的方法
    /// </summary>
   public interface ISysNotice : IRepositoryBase<SysNotifyEntity>
    {
        /// <summary>
        /// 根据条件返回数据
        /// </summary>
        /// <returns></returns>
        DataTable GetUnNotifyNum(string where);
        /// <summary>
        /// 设置消息为已读
        /// </summary>
        /// <returns></returns>
        int SetNotifyToRead(string id);
        /// <summary>
        /// 设置消息为已读
        /// </summary>
        /// <param name="notifyType"></param>
        /// <returns></returns>
        int SetAllNotifyToRead(string notifyType);
        /// <summary>
        /// 插入通知消息
        /// </summary>
        /// <param name="notifyContent"></param>
        /// <param name="notifyList"></param>
        /// <returns></returns>
        int InsertNotify(SysNotifyContentEntity notifyContent,List<SysNotifyEntity> notifyList);

        /// <summary>
        /// 删除消息
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        int DeleteNotify(string ids);

    }
}
